Skip to content

Give inactive users no permissions#7555

Open
labkey-adam wants to merge 1 commit intodevelopfrom
fb_restrict_inactive
Open

Give inactive users no permissions#7555
labkey-adam wants to merge 1 commit intodevelopfrom
fb_restrict_inactive

Conversation

@labkey-adam
Copy link
Copy Markdown
Contributor

Rationale

https://github.com/LabKey/internal-issues/issues/497

Changes

  • Return empty permissions for inactive users
  • Junit test

Copy link
Copy Markdown
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change seems fine. There are test failures, which may be unrelated.

@labkey-adam
Copy link
Copy Markdown
Contributor Author

Change seems fine. There are test failures, which may be unrelated.

A lot of maintenance tasks will fail with this change. They construct Users out of thin air and didn't set them active, which means they no longer have permission to do what they need to do.

I think we should switch them to something more formal, like SystemUser that takes a name and sets everything standard. Or maybe switch them all to use the standard system user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants